import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigNurseryDeathRecords = data => createFormAPI('/admin/pigNurseryDeathRecords', 'post', data)
export const deletePigNurseryDeathRecords = data => createAPI(`/admin/pigNurseryDeathRecords/${data.id}`, 'delete', data)
export const updatePigNurseryDeathRecords = data => createAPI('/admin/pigNurseryDeathRecords', 'put', data)
export const selectPigNurseryDeathRecords = data => createAPI('/admin/pigNurseryDeathRecords', 'get', data)
export const pigNurseryDeathRecordsNum=data =>createAPI('/admin/pigNurseryDeathRecordsNum',"get",data)
